//
//  ViewController.m
//  标签菜单
//
//  Created by Burn on 2019/7/23.
//  Copyright © 2019 menksoft. All rights reserved.
//

#import "ViewController.h"
#import "AViewController.h"
#import "CViewController.h"
#import "BViewController.h"
#import "DViewController.h"
#import "DockTitleView.h"
#import "DockTitleStyle.h"
#import "DockView.h"
#import "DockInterfaceView.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    DockTitleStyle *style = [[DockTitleStyle alloc]init];
    style.isScrollEnanble = NO;
    NSArray *titles = @[@"Shadows",@"Gangsta",@"Ferrari",@"A"];

    AViewController *vc1 = [[AViewController alloc]init];
    BViewController *vc2 = [[BViewController alloc]init];
    CViewController *vc3 = [[CViewController alloc]init];
    DViewController *vc4 = [[DViewController alloc]init];

    NSArray *childVC = @[vc1,vc2,vc3,vc4];
    CGRect rect = CGRectMake(0, 100, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height - 100);
    DockInterfaceView *interView = [[DockInterfaceView alloc]initWithFrame:rect style:style titles:titles childVCs:childVC parentVC:self];

    [self.view addSubview:interView];
}

- (void)dealloc{
    NSLog(@"ViewControllerDealloc");
}

@end
